home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11834 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1010 b   |  34 lines

  1. Path: winnie.freenet.mb.ca!lip209
  2. From: Barry Chodirker <lip209@freenet.mb.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Please Help!  Frustrated with Templates.
  5. Date: Sat, 16 Mar 1996 08:25:21 -0600
  6. Organization: Blue Sky FreeNet of Manitoba Inc.
  7. Message-ID: <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>
  8. NNTP-Posting-Host: winnie.freenet.mb.ca
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. I'm trying to create a double linked list of pointers to a structure -
  13. (Record), using the Borland template TIDoubleListImp.  I'm missing something
  14. somewhere.
  15.  
  16. typedef TIDoubleListImp<Record>  TheList;
  17.  
  18. class ViewList {
  19. public: 
  20.     Record* RecPtr;
  21.     TheList List;
  22.     Other Members;
  23. };
  24.  
  25. Compiling generates error "Illegal structure operation in the ClassLib
  26. include file "dlistimp.h" ( it's balking at the cast
  27.  
  28. while( !(STATIC_CAST(T, STATIC_CAST(void*,t) ==
  29.         *STATIC_CAST(T, etc, etc, etc))))  )
  30.  
  31. Is the instantiation wrong?  
  32.  
  33. Your help would be gratefully appreciated.  Thanks. 
  34.